import request from '@/utils/request'

// 查询评价列表
export function listEvaluation_mm(query) {
  return request({
    url: '/system/evaluation_mm/list',
    method: 'get',
    params: query
  })
}

// 查询评价详细
export function getEvaluation_mm(evaluationId) {
  return request({
    url: '/system/evaluation_mm/' + evaluationId,
    method: 'get'
  })
}

// 新增评价
export function addEvaluation_mm(data) {
  return request({
    url: '/system/evaluation_mm',
    method: 'post',
    data: data
  })
}

// 修改评价
export function updateEvaluation_mm(data) {
  return request({
    url: '/system/evaluation_mm',
    method: 'put',
    data: data
  })
}

// 删除评价
export function delEvaluation_mm(evaluationId) {
  return request({
    url: '/system/evaluation_mm/' + evaluationId,
    method: 'delete'
  })
}

//根据商户id查询评价
export function getEvaluateByMerchantId(mid) {
  return request({
    url: '/system/evaluation_mm/' + mid,
    method: 'get'
  })
}
